<form action="/update/<%= post.id %>" method="POST" enctype="application/x-www-form-urlencoded">
  <fieldset>
    <legend>编辑文章</legend>
    <div>
      <label for="title">标题</label>
      <input type="text" value="<%= post.title %>" name="title" id="title" required>
    </div>
    <div>
      <label for="content">内容</label>
      <textarea name="content" id="content" cols="30" rows="10" required="required"><%= post.content %></textarea>
    </div>
    <div>
      <button type="submit">提交</button>
      <button type="reset">重置</button>
    </div>
  </fieldset>
</form>